import { FC } from 'react';
// import { useDispatch } from 'umi';

import Form from './components/Form';
import List from './components/List';

import './index.less';

const Todolist: FC = () => {
  // const dispatch = useDispatch();
  // useEffect(() => {
  //   dispatch({
  //     type: 'index/getList',
  //   });
  // }, []);

  return (
    <div className="wrap">
      <h3>todolist</h3>
      <Form />
      <List />
    </div>
  );
};

export default Todolist;
